// Package storeorder
// @Link  https://github.com/bufanyun/hotgo
// @Copyright  Copyright (c) 2024 HotGo CLI
// @Author  Ms <133814250@qq.com>
// @License  https://github.com/bufanyun/hotgo/blob/master/LICENSE
// @AutoGenerate Version 2.15.7
package storeorder

import (
	"hotgo/internal/model/input/payin"

	"github.com/gogf/gf/v2/frame/g"
)

// ListReq 查询订单列表
type CreateReq struct {
	g.Meta       `path:"/order/create" method:"post" tags:"创建订单" summary:"创建订单"`
	CartIds      []int  `json:"cartIds"  dc:"购物车id"`
	ProductId    int    `json:"productId" v:"required#商品id不能为空" dc:"商品id"`
	ProductSkuId int    `json:"productSkuId"  dc:"商品规格id"`
	Num          int    `json:"num" v:"min:1#最小值为1" example:"1" d:"1" dc:"商品数量"`
	UserId       int    `json:"userId" v:"required#用户id不能为空" dc:"用户id"`
	AddressId    int    `json:"addressId" v:"required#收货地址id不能为空" dc:"收货地址id"`
	Platform     string `json:"platform" v:"required#请选择平台" dc:"平台"`
	Remark       string `json:"remark"  dc:"备注"`
	UserCouponId int    `json:"userCouponId" dc:"优惠券id"`
	PayType      string `json:"payType" v:"required#请选择支付方式" dc:"支付方式"`
}
type CreateRes struct {
	OrderInfo g.Map                   `json:"orderInfo" dc:"订单信息"`
	PayParams *payin.CreateOrderModel `json:"payParams" dc:"支付参数"`
}
